package com.adong.crowd.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "text.message")
public class TextMessageProperties {

    private String host;
    private String path;
    private String method;
    private String templateID;
    private String appCode;

    public TextMessageProperties() {
    }

    public TextMessageProperties(String host, String path, String method, String templateID, String appCode) {
        this.host = host;
        this.path = path;
        this.method = method;
        this.templateID = templateID;
        this.appCode = appCode;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }


    public String getTemplateID() {
        return templateID;
    }

    public void setTemplateID(String templateID) {
        this.templateID = templateID;
    }

    public String getAppCode() {
        return appCode;
    }

    public void setAppCode(String appCode) {
        this.appCode = appCode;
    }

    @Override
    public String toString() {
        return "TextMessageProperties{" +
                "host='" + host + '\'' +
                ", path='" + path + '\'' +
                ", method='" + method + '\'' +
                ", templateID='" + templateID + '\'' +
                ", appCode='" + appCode + '\'' +
                '}';
    }
}
